0 JBC
↳1 JBCToGraph (⇒, 130 ms)
↳2 JBCTerminationGraph
↳3 TerminationGraphToSCCProof (⇒, 0 ms)
↳4 AND
↳5 JBCTerminationSCC
↳6 SCCToIDPv1Proof (⇒, 50 ms)
↳7 IDP
↳8 IDPNonInfProof (⇒, 110 ms)
↳9 AND
↳10 IDP
↳11 IDependencyGraphProof (⇔, 0 ms)
↳12 TRUE
↳13 IDP
↳14 IDependencyGraphProof (⇔, 0 ms)
↳15 TRUE
↳16 JBCTerminationSCC
↳17 SCCToIDPv1Proof (⇒, 270 ms)
↳18 IDP
↳19 IDPtoQDPProof (⇒, 20 ms)
↳20 QDP
↳21 QDPOrderProof (⇔, 30 ms)
↳22 QDP
↳23 DependencyGraphProof (⇔, 0 ms)
↳24 TRUE
package AlternatingGrowReduce2;
public class AlternatingGrowReduce2 {
AlternatingGrowReduce2 next;
public static void main(String[] argv) {
Random.args = argv;
AlternatingGrowReduce2 list = createList(Random.random());
int mode = 0;
while (list != null) {
if (mode == 0) {
list = list.next;
} else if (mode == 1) {
list = new AlternatingGrowReduce2(list);
} else if (mode > 1) {
list = list.next;
}
mode++;
if (mode > 2) {
mode = 0;
}
}
}
public AlternatingGrowReduce2(AlternatingGrowReduce2 old) {
this.next = old;
}
public static AlternatingGrowReduce2 createList(int length) {
AlternatingGrowReduce2 res = new AlternatingGrowReduce2(null);
while (length > 0) {
res = new AlternatingGrowReduce2(res);
length--;
}
return res;
}
}
package AlternatingGrowReduce2;
public class Random {
static String[] args;
static int index = 0;
public static int random() {
String string = args[index];
index++;
return string.length();
}
}
Generated 17 rules for P and 0 rules for R.
P rules:
323_0_createList_LE(EOS(STATIC_323), i36, i36) → 328_0_createList_LE(EOS(STATIC_328), i36, i36)
328_0_createList_LE(EOS(STATIC_328), i36, i36) → 335_0_createList_New(EOS(STATIC_335), i36) | >(i36, 0)
335_0_createList_New(EOS(STATIC_335), i36) → 341_0_createList_Duplicate(EOS(STATIC_341), i36)
341_0_createList_Duplicate(EOS(STATIC_341), i36) → 347_0_createList_Load(EOS(STATIC_347), i36)
347_0_createList_Load(EOS(STATIC_347), i36) → 365_0_createList_InvokeMethod(EOS(STATIC_365), i36)
365_0_createList_InvokeMethod(EOS(STATIC_365), i36) → 379_0_<init>_Load(EOS(STATIC_379), i36)
379_0_<init>_Load(EOS(STATIC_379), i36) → 384_0_<init>_InvokeMethod(EOS(STATIC_384), i36)
384_0_<init>_InvokeMethod(EOS(STATIC_384), i36) → 389_0_<init>_Load(EOS(STATIC_389), i36)
389_0_<init>_Load(EOS(STATIC_389), i36) → 393_0_<init>_Load(EOS(STATIC_393), i36)
393_0_<init>_Load(EOS(STATIC_393), i36) → 397_0_<init>_FieldAccess(EOS(STATIC_397), i36)
397_0_<init>_FieldAccess(EOS(STATIC_397), i36) → 403_0_<init>_Return(EOS(STATIC_403), i36)
403_0_<init>_Return(EOS(STATIC_403), i36) → 407_0_createList_Store(EOS(STATIC_407), i36)
407_0_createList_Store(EOS(STATIC_407), i36) → 411_0_createList_Inc(EOS(STATIC_411), i36)
411_0_createList_Inc(EOS(STATIC_411), i36) → 415_0_createList_JMP(EOS(STATIC_415), +(i36, -1)) | >(i36, 0)
415_0_createList_JMP(EOS(STATIC_415), i53) → 419_0_createList_Load(EOS(STATIC_419), i53)
419_0_createList_Load(EOS(STATIC_419), i53) → 315_0_createList_Load(EOS(STATIC_315), i53)
315_0_createList_Load(EOS(STATIC_315), i29) → 323_0_createList_LE(EOS(STATIC_323), i29, i29)
R rules:
Combined rules. Obtained 1 conditional rules for P and 0 conditional rules for R.
P rules:
323_0_createList_LE(EOS(STATIC_323), x0, x0) → 323_0_createList_LE(EOS(STATIC_323), +(x0, -1), +(x0, -1)) | >(x0, 0)
R rules:
Filtered ground terms:
323_0_createList_LE(x1, x2, x3) → 323_0_createList_LE(x2, x3)
EOS(x1) → EOS
Cond_323_0_createList_LE(x1, x2, x3, x4) → Cond_323_0_createList_LE(x1, x3, x4)
Filtered duplicate args:
323_0_createList_LE(x1, x2) → 323_0_createList_LE(x2)
Cond_323_0_createList_LE(x1, x2, x3) → Cond_323_0_createList_LE(x1, x3)
Combined rules. Obtained 1 conditional rules for P and 0 conditional rules for R.
P rules:
323_0_createList_LE(x0) → 323_0_createList_LE(+(x0, -1)) | >(x0, 0)
R rules:
Finished conversion. Obtained 2 rules for P and 0 rules for R. System has predefined symbols.
P rules:
323_0_CREATELIST_LE(x0) → COND_323_0_CREATELIST_LE(>(x0, 0), x0)
COND_323_0_CREATELIST_LE(TRUE, x0) → 323_0_CREATELIST_LE(+(x0, -1))
R rules:
!= | ~ | Neq: (Integer, Integer) -> Boolean |
* | ~ | Mul: (Integer, Integer) -> Integer |
>= | ~ | Ge: (Integer, Integer) -> Boolean |
-1 | ~ | UnaryMinus: (Integer) -> Integer |
| | ~ | Bwor: (Integer, Integer) -> Integer |
/ | ~ | Div: (Integer, Integer) -> Integer |
= | ~ | Eq: (Integer, Integer) -> Boolean |
~ | Bwxor: (Integer, Integer) -> Integer | |
|| | ~ | Lor: (Boolean, Boolean) -> Boolean |
! | ~ | Lnot: (Boolean) -> Boolean |
< | ~ | Lt: (Integer, Integer) -> Boolean |
- | ~ | Sub: (Integer, Integer) -> Integer |
<= | ~ | Le: (Integer, Integer) -> Boolean |
> | ~ | Gt: (Integer, Integer) -> Boolean |
~ | ~ | Bwnot: (Integer) -> Integer |
% | ~ | Mod: (Integer, Integer) -> Integer |
& | ~ | Bwand: (Integer, Integer) -> Integer |
+ | ~ | Add: (Integer, Integer) -> Integer |
&& | ~ | Land: (Boolean, Boolean) -> Boolean |
Integer
(0) -> (1), if (x0[0] > 0 ∧x0[0] →* x0[1])
(1) -> (0), if (x0[1] + -1 →* x0[0])
(1) (>(x0[0], 0)=TRUE∧x0[0]=x0[1] ⇒ 323_0_CREATELIST_LE(x0[0])≥NonInfC∧323_0_CREATELIST_LE(x0[0])≥COND_323_0_CREATELIST_LE(>(x0[0], 0), x0[0])∧(UIncreasing(COND_323_0_CREATELIST_LE(>(x0[0], 0), x0[0])), ≥))
(2) (>(x0[0], 0)=TRUE ⇒ 323_0_CREATELIST_LE(x0[0])≥NonInfC∧323_0_CREATELIST_LE(x0[0])≥COND_323_0_CREATELIST_LE(>(x0[0], 0), x0[0])∧(UIncreasing(COND_323_0_CREATELIST_LE(>(x0[0], 0), x0[0])), ≥))
(3) (x0[0] + [-1] ≥ 0 ⇒ (UIncreasing(COND_323_0_CREATELIST_LE(>(x0[0], 0), x0[0])), ≥)∧[(-1)Bound*bni_8] + [(2)bni_8]x0[0] ≥ 0∧[(-1)bso_9] ≥ 0)
(4) (x0[0] + [-1] ≥ 0 ⇒ (UIncreasing(COND_323_0_CREATELIST_LE(>(x0[0], 0), x0[0])), ≥)∧[(-1)Bound*bni_8] + [(2)bni_8]x0[0] ≥ 0∧[(-1)bso_9] ≥ 0)
(5) (x0[0] + [-1] ≥ 0 ⇒ (UIncreasing(COND_323_0_CREATELIST_LE(>(x0[0], 0), x0[0])), ≥)∧[(-1)Bound*bni_8] + [(2)bni_8]x0[0] ≥ 0∧[(-1)bso_9] ≥ 0)
(6) (x0[0] ≥ 0 ⇒ (UIncreasing(COND_323_0_CREATELIST_LE(>(x0[0], 0), x0[0])), ≥)∧[(-1)Bound*bni_8 + (2)bni_8] + [(2)bni_8]x0[0] ≥ 0∧[(-1)bso_9] ≥ 0)
(7) (COND_323_0_CREATELIST_LE(TRUE, x0[1])≥NonInfC∧COND_323_0_CREATELIST_LE(TRUE, x0[1])≥323_0_CREATELIST_LE(+(x0[1], -1))∧(UIncreasing(323_0_CREATELIST_LE(+(x0[1], -1))), ≥))
(8) ((UIncreasing(323_0_CREATELIST_LE(+(x0[1], -1))), ≥)∧[bni_10] = 0∧[2 + (-1)bso_11] ≥ 0)
(9) ((UIncreasing(323_0_CREATELIST_LE(+(x0[1], -1))), ≥)∧[bni_10] = 0∧[2 + (-1)bso_11] ≥ 0)
(10) ((UIncreasing(323_0_CREATELIST_LE(+(x0[1], -1))), ≥)∧[bni_10] = 0∧[2 + (-1)bso_11] ≥ 0)
(11) ((UIncreasing(323_0_CREATELIST_LE(+(x0[1], -1))), ≥)∧[bni_10] = 0∧0 = 0∧[2 + (-1)bso_11] ≥ 0)
POL(TRUE) = 0
POL(FALSE) = 0
POL(323_0_CREATELIST_LE(x1)) = [2]x1
POL(COND_323_0_CREATELIST_LE(x1, x2)) = [2]x2
POL(>(x1, x2)) = [-1]
POL(0) = 0
POL(+(x1, x2)) = x1 + x2
POL(-1) = [-1]
COND_323_0_CREATELIST_LE(TRUE, x0[1]) → 323_0_CREATELIST_LE(+(x0[1], -1))
323_0_CREATELIST_LE(x0[0]) → COND_323_0_CREATELIST_LE(>(x0[0], 0), x0[0])
323_0_CREATELIST_LE(x0[0]) → COND_323_0_CREATELIST_LE(>(x0[0], 0), x0[0])
!= | ~ | Neq: (Integer, Integer) -> Boolean |
* | ~ | Mul: (Integer, Integer) -> Integer |
>= | ~ | Ge: (Integer, Integer) -> Boolean |
-1 | ~ | UnaryMinus: (Integer) -> Integer |
| | ~ | Bwor: (Integer, Integer) -> Integer |
/ | ~ | Div: (Integer, Integer) -> Integer |
= | ~ | Eq: (Integer, Integer) -> Boolean |
~ | Bwxor: (Integer, Integer) -> Integer | |
|| | ~ | Lor: (Boolean, Boolean) -> Boolean |
! | ~ | Lnot: (Boolean) -> Boolean |
< | ~ | Lt: (Integer, Integer) -> Boolean |
- | ~ | Sub: (Integer, Integer) -> Integer |
<= | ~ | Le: (Integer, Integer) -> Boolean |
> | ~ | Gt: (Integer, Integer) -> Boolean |
~ | ~ | Bwnot: (Integer) -> Integer |
% | ~ | Mod: (Integer, Integer) -> Integer |
& | ~ | Bwand: (Integer, Integer) -> Integer |
+ | ~ | Add: (Integer, Integer) -> Integer |
&& | ~ | Land: (Boolean, Boolean) -> Boolean |
Integer
!= | ~ | Neq: (Integer, Integer) -> Boolean |
* | ~ | Mul: (Integer, Integer) -> Integer |
>= | ~ | Ge: (Integer, Integer) -> Boolean |
-1 | ~ | UnaryMinus: (Integer) -> Integer |
| | ~ | Bwor: (Integer, Integer) -> Integer |
/ | ~ | Div: (Integer, Integer) -> Integer |
= | ~ | Eq: (Integer, Integer) -> Boolean |
~ | Bwxor: (Integer, Integer) -> Integer | |
|| | ~ | Lor: (Boolean, Boolean) -> Boolean |
! | ~ | Lnot: (Boolean) -> Boolean |
< | ~ | Lt: (Integer, Integer) -> Boolean |
- | ~ | Sub: (Integer, Integer) -> Integer |
<= | ~ | Le: (Integer, Integer) -> Boolean |
> | ~ | Gt: (Integer, Integer) -> Boolean |
~ | ~ | Bwnot: (Integer) -> Integer |
% | ~ | Mod: (Integer, Integer) -> Integer |
& | ~ | Bwand: (Integer, Integer) -> Integer |
+ | ~ | Add: (Integer, Integer) -> Integer |
&& | ~ | Land: (Boolean, Boolean) -> Boolean |
Integer
Generated 56 rules for P and 0 rules for R.
P rules:
530_0_main_NULL(EOS(STATIC_530), java.lang.Object(o98sub), i59, java.lang.Object(o98sub)) → 533_0_main_NULL(EOS(STATIC_533), java.lang.Object(o98sub), i59, java.lang.Object(o98sub))
533_0_main_NULL(EOS(STATIC_533), java.lang.Object(o98sub), i59, java.lang.Object(o98sub)) → 536_0_main_Load(EOS(STATIC_536), java.lang.Object(o98sub), i59)
536_0_main_Load(EOS(STATIC_536), java.lang.Object(o98sub), i59) → 538_0_main_NE(EOS(STATIC_538), java.lang.Object(o98sub), i59, i59)
538_0_main_NE(EOS(STATIC_538), java.lang.Object(o98sub), i63, i63) → 542_0_main_NE(EOS(STATIC_542), java.lang.Object(o98sub), i63, i63)
538_0_main_NE(EOS(STATIC_538), java.lang.Object(o98sub), matching1, matching2) → 543_0_main_NE(EOS(STATIC_543), java.lang.Object(o98sub), 0, 0) | &&(=(matching1, 0), =(matching2, 0))
542_0_main_NE(EOS(STATIC_542), java.lang.Object(o98sub), i63, i63) → 545_0_main_Load(EOS(STATIC_545), java.lang.Object(o98sub), i63) | >(i63, 0)
545_0_main_Load(EOS(STATIC_545), java.lang.Object(o98sub), i63) → 549_0_main_ConstantStackPush(EOS(STATIC_549), java.lang.Object(o98sub), i63, i63)
549_0_main_ConstantStackPush(EOS(STATIC_549), java.lang.Object(o98sub), i63, i63) → 554_0_main_NE(EOS(STATIC_554), java.lang.Object(o98sub), i63, i63, 1)
554_0_main_NE(EOS(STATIC_554), java.lang.Object(o98sub), matching1, matching2, matching3) → 558_0_main_NE(EOS(STATIC_558), java.lang.Object(o98sub), 1, 1, 1) | &&(&&(=(matching1, 1), =(matching2, 1)), =(matching3, 1))
554_0_main_NE(EOS(STATIC_554), java.lang.Object(o98sub), matching1, matching2, matching3) → 559_0_main_NE(EOS(STATIC_559), java.lang.Object(o98sub), 2, 2, 1) | &&(&&(=(matching1, 2), =(matching2, 2)), =(matching3, 1))
558_0_main_NE(EOS(STATIC_558), java.lang.Object(o98sub), matching1, matching2, matching3) → 563_0_main_New(EOS(STATIC_563), java.lang.Object(o98sub), 1) | &&(&&(=(matching1, 1), =(matching2, 1)), =(matching3, 1))
563_0_main_New(EOS(STATIC_563), java.lang.Object(o98sub), matching1) → 569_0_main_Duplicate(EOS(STATIC_569), java.lang.Object(o98sub), 1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL))) | =(matching1, 1)
569_0_main_Duplicate(EOS(STATIC_569), java.lang.Object(o98sub), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL))) → 575_0_main_Load(EOS(STATIC_575), java.lang.Object(o98sub), 1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL))) | =(matching1, 1)
575_0_main_Load(EOS(STATIC_575), java.lang.Object(o98sub), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL))) → 581_0_main_InvokeMethod(EOS(STATIC_581), 1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub)) | =(matching1, 1)
581_0_main_InvokeMethod(EOS(STATIC_581), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub)) → 587_0_<init>_Load(EOS(STATIC_587), 1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub)) | =(matching1, 1)
587_0_<init>_Load(EOS(STATIC_587), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub)) → 600_0_<init>_InvokeMethod(EOS(STATIC_600), 1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL))) | =(matching1, 1)
600_0_<init>_InvokeMethod(EOS(STATIC_600), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL))) → 605_0_<init>_Load(EOS(STATIC_605), 1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub)) | =(matching1, 1)
605_0_<init>_Load(EOS(STATIC_605), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub)) → 609_0_<init>_Load(EOS(STATIC_609), 1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL))) | =(matching1, 1)
609_0_<init>_Load(EOS(STATIC_609), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL))) → 614_0_<init>_FieldAccess(EOS(STATIC_614), 1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub)) | =(matching1, 1)
614_0_<init>_FieldAccess(EOS(STATIC_614), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, NULL)), java.lang.Object(o98sub)) → 620_0_<init>_Return(EOS(STATIC_620), 1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), java.lang.Object(o98sub)) | =(matching1, 1)
620_0_<init>_Return(EOS(STATIC_620), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), java.lang.Object(o98sub)) → 625_0_main_Store(EOS(STATIC_625), 1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub)))) | =(matching1, 1)
625_0_main_Store(EOS(STATIC_625), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub)))) → 629_0_main_JMP(EOS(STATIC_629), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), 1) | =(matching1, 1)
629_0_main_JMP(EOS(STATIC_629), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), matching1) → 634_0_main_Inc(EOS(STATIC_634), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), 1) | =(matching1, 1)
634_0_main_Inc(EOS(STATIC_634), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), matching1) → 636_0_main_Load(EOS(STATIC_636), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), 2) | =(matching1, 1)
636_0_main_Load(EOS(STATIC_636), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), matching1) → 644_0_main_ConstantStackPush(EOS(STATIC_644), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), 2, 2) | =(matching1, 2)
644_0_main_ConstantStackPush(EOS(STATIC_644), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), matching1, matching2) → 647_0_main_LE(EOS(STATIC_647), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), 2, 2, 2) | &&(=(matching1, 2), =(matching2, 2))
647_0_main_LE(EOS(STATIC_647), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), matching1, matching2, matching3) → 651_0_main_Load(EOS(STATIC_651), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), 2) | &&(&&(=(matching1, 2), =(matching2, 2)), =(matching3, 2))
651_0_main_Load(EOS(STATIC_651), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), matching1) → 526_0_main_Load(EOS(STATIC_526), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(o98sub))), 2) | =(matching1, 2)
526_0_main_Load(EOS(STATIC_526), o92, i59) → 530_0_main_NULL(EOS(STATIC_530), o92, i59, o92)
559_0_main_NE(EOS(STATIC_559), java.lang.Object(o98sub), matching1, matching2, matching3) → 565_0_main_Load(EOS(STATIC_565), java.lang.Object(o98sub), 2) | &&(&&(=(matching1, 2), =(matching2, 2)), =(matching3, 1))
565_0_main_Load(EOS(STATIC_565), java.lang.Object(o98sub), matching1) → 571_0_main_ConstantStackPush(EOS(STATIC_571), java.lang.Object(o98sub), 2, 2) | =(matching1, 2)
571_0_main_ConstantStackPush(EOS(STATIC_571), java.lang.Object(o98sub), matching1, matching2) → 577_0_main_LE(EOS(STATIC_577), java.lang.Object(o98sub), 2, 2, 1) | &&(=(matching1, 2), =(matching2, 2))
577_0_main_LE(EOS(STATIC_577), java.lang.Object(o98sub), matching1, matching2, matching3) → 583_0_main_Load(EOS(STATIC_583), java.lang.Object(o98sub), 2) | &&(&&(=(matching1, 2), =(matching2, 2)), =(matching3, 1))
583_0_main_Load(EOS(STATIC_583), java.lang.Object(o98sub), matching1) → 590_0_main_FieldAccess(EOS(STATIC_590), 2, java.lang.Object(o98sub)) | =(matching1, 2)
590_0_main_FieldAccess(EOS(STATIC_590), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, o108))) → 594_0_main_FieldAccess(EOS(STATIC_594), 2, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, o108))) | =(matching1, 2)
594_0_main_FieldAccess(EOS(STATIC_594), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, o108))) → 602_0_main_Store(EOS(STATIC_602), 2, o108) | =(matching1, 2)
602_0_main_Store(EOS(STATIC_602), matching1, o108) → 607_0_main_Inc(EOS(STATIC_607), o108, 2) | =(matching1, 2)
607_0_main_Inc(EOS(STATIC_607), o108, matching1) → 612_0_main_Load(EOS(STATIC_612), o108) | =(matching1, 2)
612_0_main_Load(EOS(STATIC_612), o108) → 616_0_main_ConstantStackPush(EOS(STATIC_616), o108)
616_0_main_ConstantStackPush(EOS(STATIC_616), o108) → 623_0_main_LE(EOS(STATIC_623), o108, 2)
623_0_main_LE(EOS(STATIC_623), o108, matching1) → 627_0_main_ConstantStackPush(EOS(STATIC_627), o108) | =(matching1, 2)
627_0_main_ConstantStackPush(EOS(STATIC_627), o108) → 631_0_main_Store(EOS(STATIC_631), o108, 0)
631_0_main_Store(EOS(STATIC_631), o108, matching1) → 635_0_main_JMP(EOS(STATIC_635), o108, 0) | =(matching1, 0)
635_0_main_JMP(EOS(STATIC_635), o108, matching1) → 640_0_main_Load(EOS(STATIC_640), o108, 0) | =(matching1, 0)
640_0_main_Load(EOS(STATIC_640), o108, matching1) → 526_0_main_Load(EOS(STATIC_526), o108, 0) | =(matching1, 0)
543_0_main_NE(EOS(STATIC_543), java.lang.Object(o98sub), matching1, matching2) → 547_0_main_Load(EOS(STATIC_547), java.lang.Object(o98sub), 0) | &&(=(matching1, 0), =(matching2, 0))
547_0_main_Load(EOS(STATIC_547), java.lang.Object(o98sub), matching1) → 552_0_main_FieldAccess(EOS(STATIC_552), 0, java.lang.Object(o98sub)) | =(matching1, 0)
552_0_main_FieldAccess(EOS(STATIC_552), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, o103))) → 556_0_main_FieldAccess(EOS(STATIC_556), 0, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, o103))) | =(matching1, 0)
556_0_main_FieldAccess(EOS(STATIC_556), matching1, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, o103))) → 561_0_main_Store(EOS(STATIC_561), 0, o103) | =(matching1, 0)
561_0_main_Store(EOS(STATIC_561), matching1, o103) → 567_0_main_JMP(EOS(STATIC_567), o103, 0) | =(matching1, 0)
567_0_main_JMP(EOS(STATIC_567), o103, matching1) → 573_0_main_Inc(EOS(STATIC_573), o103, 0) | =(matching1, 0)
573_0_main_Inc(EOS(STATIC_573), o103, matching1) → 579_0_main_Load(EOS(STATIC_579), o103, 1) | =(matching1, 0)
579_0_main_Load(EOS(STATIC_579), o103, matching1) → 585_0_main_ConstantStackPush(EOS(STATIC_585), o103, 1, 1) | =(matching1, 1)
585_0_main_ConstantStackPush(EOS(STATIC_585), o103, matching1, matching2) → 592_0_main_LE(EOS(STATIC_592), o103, 1, 1) | &&(=(matching1, 1), =(matching2, 1))
592_0_main_LE(EOS(STATIC_592), o103, matching1, matching2) → 598_0_main_Load(EOS(STATIC_598), o103, 1) | &&(=(matching1, 1), =(matching2, 1))
598_0_main_Load(EOS(STATIC_598), o103, matching1) → 526_0_main_Load(EOS(STATIC_526), o103, 1) | =(matching1, 1)
R rules:
Combined rules. Obtained 3 conditional rules for P and 0 conditional rules for R.
P rules:
530_0_main_NULL(EOS(STATIC_530), java.lang.Object(x0), 1, java.lang.Object(x0)) → 530_0_main_NULL(EOS(STATIC_530), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(x0))), 2, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, java.lang.Object(x0))))
530_0_main_NULL(EOS(STATIC_530), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, x0)), 2, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, x0))) → 530_0_main_NULL(EOS(STATIC_530), x0, 0, x0)
530_0_main_NULL(EOS(STATIC_530), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, x0)), 0, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(EOC, x0))) → 530_0_main_NULL(EOS(STATIC_530), x0, 1, x0)
R rules:
Filtered ground terms:
530_0_main_NULL(x1, x2, x3, x4) → 530_0_main_NULL(x2, x3, x4)
EOS(x1) → EOS
AlternatingGrowReduce2.AlternatingGrowReduce2(x1, x2) → AlternatingGrowReduce2.AlternatingGrowReduce2(x2)
Filtered duplicate args:
530_0_main_NULL(x1, x2, x3) → 530_0_main_NULL(x2, x3)
Combined rules. Obtained 3 conditional rules for P and 0 conditional rules for R.
P rules:
530_0_main_NULL(1, java.lang.Object(x0)) → 530_0_main_NULL(2, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(java.lang.Object(x0))))
530_0_main_NULL(2, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0))) → 530_0_main_NULL(0, x0)
530_0_main_NULL(0, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0))) → 530_0_main_NULL(1, x0)
R rules:
Finished conversion. Obtained 3 rules for P and 0 rules for R. System has no predefined symbols.
P rules:
530_0_MAIN_NULL(1, java.lang.Object(x0)) → 530_0_MAIN_NULL(2, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(java.lang.Object(x0))))
530_0_MAIN_NULL(2, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0))) → 530_0_MAIN_NULL(0, x0)
530_0_MAIN_NULL(0, java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0))) → 530_0_MAIN_NULL(1, x0)
R rules:
!= | ~ | Neq: (Integer, Integer) -> Boolean |
* | ~ | Mul: (Integer, Integer) -> Integer |
>= | ~ | Ge: (Integer, Integer) -> Boolean |
-1 | ~ | UnaryMinus: (Integer) -> Integer |
| | ~ | Bwor: (Integer, Integer) -> Integer |
/ | ~ | Div: (Integer, Integer) -> Integer |
= | ~ | Eq: (Integer, Integer) -> Boolean |
~ | Bwxor: (Integer, Integer) -> Integer | |
|| | ~ | Lor: (Boolean, Boolean) -> Boolean |
! | ~ | Lnot: (Boolean) -> Boolean |
< | ~ | Lt: (Integer, Integer) -> Boolean |
- | ~ | Sub: (Integer, Integer) -> Integer |
<= | ~ | Le: (Integer, Integer) -> Boolean |
> | ~ | Gt: (Integer, Integer) -> Boolean |
~ | ~ | Bwnot: (Integer) -> Integer |
% | ~ | Mod: (Integer, Integer) -> Integer |
& | ~ | Bwand: (Integer, Integer) -> Integer |
+ | ~ | Add: (Integer, Integer) -> Integer |
&& | ~ | Land: (Boolean, Boolean) -> Boolean |
(0) -> (0), if (2 →* 1∧java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(java.lang.Object(x0[0]))) →* java.lang.Object(x0[0]'))
(0) -> (1), if java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(java.lang.Object(x0[0]))) →* java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0[1]))
(0) -> (2), if (2 →* 0∧java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(java.lang.Object(x0[0]))) →* java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0[2])))
(1) -> (0), if (0 →* 1∧x0[1] →* java.lang.Object(x0[0]))
(1) -> (1), if (0 →* 2∧x0[1] →* java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0[1]')))
(1) -> (2), if x0[1] →* java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0[2]))
(2) -> (0), if x0[2] →* java.lang.Object(x0[0])
(2) -> (1), if (1 →* 2∧x0[2] →* java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0[1])))
(2) -> (2), if (1 →* 0∧x0[2] →* java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0[2]')))
530_0_MAIN_NULL(pos(s(01)), java.lang.Object(x0[0])) → 530_0_MAIN_NULL(pos(s(s(01))), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(java.lang.Object(x0[0]))))
530_0_MAIN_NULL(pos(s(s(01))), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0[1]))) → 530_0_MAIN_NULL(pos(01), x0[1])
530_0_MAIN_NULL(pos(01), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0[2]))) → 530_0_MAIN_NULL(pos(s(01)), x0[2])
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
530_0_MAIN_NULL(pos(s(s(01))), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0[1]))) → 530_0_MAIN_NULL(pos(01), x0[1])
POL(530_0_MAIN_NULL(x1, x2)) = 0 +
[ 1, 1 ] · x1 +
[ 1, 0 ] · x2
POL(pos(x1)) =
/ 1 \ \ 1 / +
/ 0 1 \ \ 0 0 / · x1
POL(s(x1)) =
/ 0 \ \ 1 / +
/ 0 0 \ \ 1 0 / · x1
POL(01) =
/ 1 \ \ 1 /
POL(java.lang.Object(x1)) =
/ 0 \ \ 0 / +
/ 0 1 \ \ 0 0 / · x1
POL(AlternatingGrowReduce2.AlternatingGrowReduce2(x1)) =
/ 0 \ \ 1 / +
/ 0 0 \ \ 1 0 / · x1
530_0_MAIN_NULL(pos(s(01)), java.lang.Object(x0[0])) → 530_0_MAIN_NULL(pos(s(s(01))), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(java.lang.Object(x0[0]))))
530_0_MAIN_NULL(pos(01), java.lang.Object(AlternatingGrowReduce2.AlternatingGrowReduce2(x0[2]))) → 530_0_MAIN_NULL(pos(s(01)), x0[2])